package lv.dysnomia.server.entities

import javax.jdo.annotations.{ IdentityType, IdGeneratorStrategy, PersistenceCapable, Persistent, PrimaryKey }

import com.google.appengine.api.datastore.{ Key, Text }

@PersistenceCapable(identityType = IdentityType.APPLICATION)
class Lilypond {
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  var key: Key = null

  @Persistent
  var label: String = null

  @Persistent
  var lilytext: Text = null

  @Persistent
  var svgWidth: Int = 0

  @Persistent
  var svgHeight: Int = 0

  @Persistent
  var pngWidth: Int = 0

  @Persistent
  var pngHeight: Int = 0

  def getKey(): Key = {
    return key
  }

  def setKey(key: Key): Unit = {
    this.key = key;
  }

  def getLabel(): String = label

  def setLabel(label: String): Unit = {
    this.label = label
  }

  def getLilytext(): Text = lilytext

  def setLilytext(lilytext: Text): Unit = {
    this.lilytext = lilytext
  }

  def getPngWidth(): Int = pngWidth

  def setPngWidth(pngWidth: Int): Unit = {
    this.pngWidth = pngWidth
  }

  def getPngHeight(): Int = pngHeight

  def setPngHeight(pngHeight: Int): Unit = {
    this.pngHeight = pngHeight
  }

  def getSvgWidth(): Int = svgWidth

  def setSvgWidth(svgWidth: Int): Unit = {
    this.svgWidth = svgWidth
  }

  def getSvgHeight(): Int = svgHeight

  def setSvgHeight(svgHeight: Int): Unit = {
    this.svgHeight = svgHeight
  }
}
